<style lang="less" scoped>
.detailsPage {
    width: 100%;
    height: 100%;
    .title {
        width: 100%;
        height: 272rpx;
        padding: 29rpx;
        box-sizing: border-box;
        margin-bottom: 20rpx;
        background-color: #fff;
        .content_title {
            width: 100%;
            height: 65rpx;
            line-height: 65rpx;
            .c_t_left {
            width: 70%;
            float: left;
            font-size:42rpx;
            font-family:HiraginoSansGB-W6;
            font-weight:normal;
            color:rgba(0,0,0,1);
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
            }
            .c_t_right {
            width: 30%;
            text-align: right;
            float: right;
            font-size:34rpx;
            font-family:HiraginoSansGB-W3;
            font-weight:normal;
            color:rgba(231,92,68,1);
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
            }
        }
        .dp_t_js {
            width: 100%;
            margin-top: 15rpx;
            .js {
                width: 112rpx;
                height: 40rpx;
                line-height: 40rpx;
                text-align: center;
                background:rgba(236,248,255,1);
                border-radius:3rpx;
                font-size:24rpx;
                font-family:HiraginoSansGB-W3;
                font-weight:normal;
                color:rgba(51,51,51,1);
            }
        }
        .dp_text {
            height: 30rpx;
            line-height: 30rpx;
            margin-top: 20rpx;
            font-size:26rpx;
            font-family:HiraginoSansGB-W3;
            font-weight:normal;
            color:rgba(102,102,102,1);
            span {
                color: #999999;
            }
            .dp_text_left {
                width: 80%;
                float: left;
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
            }
            .dp_text_right {
                width: 20%;
                text-align: right;
                float: right;
                color:rgba(9,165,254,1);
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
            }
        }
    }
    .tag_title {
        width: 100%;
        height: 68rpx;
        line-height: 68rpx;
        font-size:30rpx;
        font-family:PingFangSC-Regular;
        font-weight:400;
        color:rgba(34,34,34,1);
        box-sizing: border-box;
        border-bottom: 1rpx solid #F2F5F9;
    }
    .tag1 {
        width: 100%;
        height: 205rpx;
        margin-bottom: 20rpx;
        background-color: #fff;
        padding: 0rpx 30rpx;
        box-sizing: border-box;
        .tag_main {
            margin-top: 40rpx;
            width: 100%;
            height: 56rpx;
            line-height: 56rpx;
            font-size:26rpx;
            font-weight:400;
            .tag_main_time {
                width: 23%;
                float: left;
                font-family:PingFangSC-Regular;
                color:rgba(51,51,51,1);
            }
            .tag_main_img {
                float: left;
                width: 372rpx;
                height: 56rpx;
                text-align: center;
                font-family:MicrosoftYaHei;
                color:rgba(9,165,254,1);
                background: url('');
                background-size: 100% 100%;
            }
        }
    }
    .tag2 {
        width: 100%;
        height: 208rpx;
        padding: 0rpx 30rpx;
        box-sizing: border-box;
        background-color: #fff;
        margin-bottom: 20rpx;
        .tag2_text {
            width: 100%;
            font-size:26rpx;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(51,51,51,1);
            margin-top: 20rpx;
            .t2tx_left {
                display: inline-block;
                width: 80%;
                text-align: left;
            }
            .t2tx_right {
                display: inline-block;
                width: 20%;
                text-align: right;
            }
        }
    }
    .tag3 {
        width: 100%;
        height: 144rpx;
        background-color: #fff;
        padding: 0rpx 30rpx;
        box-sizing: border-box;
        .tag3_text {
            width:100%;
            margin-top: 13rpx;
            font-size:28rpx;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(102,102,102,1);
        }
    }
    .detailsPage_bottom {
        position: fixed;
        left: 0rpx;
        bottom: 0rpx;
        width: 100%;
        height: 94rpx;
        background-color: #fff;
        .dpb_icon {
            float: left;
            text-align: center;
            width: 155rpx;
            height: 100%;
            line-height: 94rpx;
            font-size:24rpx;
            font-family:HiraginoSansGB-W3;
            font-weight:normal;
            color:rgba(102,102,102,1);
            img {
                margin-top: -10rpx;
                width: 36rpx;
                height: 36rpx;
                vertical-align: middle;
            }
        }
        .dpb_order {
            float: left;
            width: calc(100% - 310rpx);
            line-height: 94rpx;
            text-align: center;
            background:rgba(235,61,60,1);
            font-size:34rpx;
            font-family:HiraginoSansGB-W3;
            font-weight:normal;
            color:rgba(255,255,255,1);
        }
    }
    button::after {

        border: none;

    }
    button {

        background-color: #fff;

     }
}
</style>


<template>
    <div class="detailsPage">
        <div class="title">
            <div class="content_title">
                <span class="c_t_left">国美门店促销员</span>
                <span class="c_t_right">200元/天</span>
            </div>
            <div class="dp_t_js">
                <div class="js">
                    <i-icon type="time" style="color:rgba(9,165,254,1);font-size:22rpx;"/>
                    计时
                </div>
            </div>
            <div class="dp_text">发布企业：<span>国美电器</span></div>
            <div class="dp_text">
                <div class="dp_text_left">工作地址：<span>朝阳区霄云路鹏瑞大厦</span></div>
                <div class="dp_text_right">距您3.6km</div>
            </div>
        </div>
        <div class="tag1">
            <div class="tag_title">工作时间</div>
            <div class="tag_main">
                <div class="tag_main_time" style="text-align: left;">2017.04.01</div>
                <div class="tag_main_img">白班 10:00-19:00</div>
                <div class="tag_main_time" style="text-align: right;">2018.12.19</div>
            </div>
        </div>
        <div class="tag2">
            <div class="tag_title">招工人数</div>
            <div class="tag2_text">
                <div class="t2tx_left">共需要</div>
                <div class="t2tx_right">45人</div>
            </div>
            <div class="tag2_text">
                <div class="t2tx_left">已接单人数</div>
                <div class="t2tx_right">4人</div>
            </div>
        </div>
        <div class="tag3">
            <div class="tag_title">招工要求</div>
            <div class="tag3_text">男，18-25岁，有相关经验优先。</div>
        </div>
        <i-notice-bar icon="prompt_fill">
            警惕：要求跳过平台交易和先交钱的均涉嫌欺诈！
        </i-notice-bar>
        <div class="detailsPage_bottom">
            <div class="dpb_icon" @click="collect">
                <img :src="type ? '/static/images/sc.png' : '/static/images/sc1.png'" alt="">
                收藏
            </div>
            <button open-type='share' class="dpb_icon">
                <img src="/static/images/fx.png" alt="">
                分享
            </button>
            <!-- <div class="dpb_icon">
                <img src="/static/images/fx.png" alt="">
            </div> -->
            <i-toast id="toast" />
            <div class="dpb_order">立即接单</div>
        </div>
    </div>
</template>

<script>
const { $Toast } = require('../../../static/iview/base/index');
export default {
    data () {
        return {
            type:false
        }
    },
    onLoad() {
        wx.setNavigationBarTitle({
          title:'零工详情',
        })
        // wx.setNavigationBarColor({
        //   frontColor:'#ffffff',//前景颜色值，包括按钮、标题、状态栏的颜色，仅支持 #ffffff 和 #000000 (微信小程序官方规定)
        //   backgroundColor:'27ADFF'//背景颜色值，有效值为十六进制颜色
        // })
    },
    mounted () {
        
    },
    methods: {
        collect() {
            this.type = !this.type
            if (this.type == true) {
                $Toast({
                    content: '收藏成功',
                    type: 'success'
                });
            }
        }
    },
    onShareAppMessage() {
         return {
           title: '国美门店促销员',
            desc: '分享页面的内容',
            path: 'pages/detailsPage/main'
        }
    },
    
}
</script>
